package com.hongying.consumer;

import com.hongying.constant.RabbitMqConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = RabbitMqConstant.MESSAGES)
@Slf4j
public class TopicReceiver2 {

    @RabbitHandler
    public  void process(String message){
        log.info("TopicReceiver2:{}",message);
    }

}
